import { request } from '@ruifox-cms/utils'

// 添加数据源
export function insertDataSource(data) {
    return request({
        url: '/provider/dataSource/insert',
        method: 'post',
        data
    })
}

// 修改数据源
export function updateDataSource(data) {
    return request({
        url: '/provider/dataSource/update',
        method: 'post',
        data
    })
}

// 删除数据源
export function deleteDataSource(data) {
    return request({
        url: '/provider/dataSource/delete',
        method: 'post',
        data
    })
}

// 分页查看数据源
export function getDataSourcePage(params) {
    return request({
        url: '/provider/dataSource/selectPage',
        method: 'get',
        params
    })
}

// 查看全部数据源
export function getDataSourceList(params) {
    return request({
        url: '/provider/dataSource/selectList',
        method: 'get',
        params
    })
}
